package com.hspedu.springcloud.service.imp;

import com.hspedu.springcloud.dao.MemberDao;
import com.hspedu.springcloud.entity.Member;
import com.hspedu.springcloud.service.MemberService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Gening on 13/6/2025
 */
@Service
public class MemberServiceImp implements MemberService {
    @Resource
    private MemberDao memberDao;

    @Override
    public Member queryById(Long id) {
        Member member = memberDao.queryMemberById(id);

        return member;
    }

    @Override
    public int save(Member member) {
        return  memberDao.save(member);
    }
}
